package com.cn.wanxi.thread;

public class MyRunnableMain {
    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getName());
        MyRunnable myRunnable = new MyRunnable();
//        myRunnable.name = "aaaaa";

        Thread thread = new Thread(myRunnable, "aaaaaaaaa");
//        thread.setName("aaaaaaa");
        thread.start();
        MyRunnable myRunnable1 = new MyRunnable();
//        myRunnable1.name = "bbbbbb";
        Thread thread1 = new Thread(myRunnable1, "bbbbbbbbb");
//        thread1.setName("bbbbbb");
        thread1.start();

    }
}
